<html>
<head>
	<link rel="stylesheet" type="text/css" href="../fshl/styles/COHEN_style.css" media="all" />
</head>
<body>
<?php
	
	// This example shows basic FSHL usage.

	// default FSHL initialization, without line numbering and tab emulation
		
			echo "<p>example 1";
			
			require_once('../fshl/fshl.php');
			
			$your_supa_dupa_text = '<pre><?php echo "hello world"; ?></pre>';
			$output_module = 'HTML';
			$start_language = 'HTML';
		
			$parser = new fshlParser($output_module);
			echo '<pre class="normal">';
			echo $parser->highlightString($start_language, $your_supa_dupa_text);
			echo '</pre>';


	// default FSHL initialization, with line numbering and tab emulation
	// output module is now UTF8
	
			echo "<p>example 2</p>";
		
			$your_supa_dupa_text = "if(!this) {\n\tprintf(\"this in panic\");\n}";
			$output_module = 'HTML_UTF8';
			$start_language = 'CPP';
			$parser_options = P_TAB_INDENT | P_LINE_COUNTER;
		
			$parser = new fshlParser($output_module, $parser_options);
			echo '<pre class="normal">';
			echo $parser->highlightString($start_language, $your_supa_dupa_text);
			echo '</pre>';


	// Example with links to help pages
	
			echo "<p>example 3 (with &lt;pre&gt; tag)</p>";
		
			$your_supa_dupa_text = "--\tinsert into\t`superb_table`\n";
			$your_supa_dupa_text .= "\tINSERT INTO\t`superb_table`\tVALUES (1, 9, 0, 3, 0);\n";
			$your_supa_dupa_text .= "\tINSERT INTO\t`superb_table`\tVALUES (8, 0, 0, 3, 0);\n";
			$output_module = 'HTML_HP';
			$start_language = 'SQL';
			$parser_options = P_TAB_INDENT | P_LINE_COUNTER;
		
			$parser = new fshlParser($output_module, $parser_options);
			echo '<pre class="normal">';
			echo $parser->highlightString($start_language, $your_supa_dupa_text);
			echo '</pre>';

	// Example with <code> tags

			echo "<p>example 4 (with &lt;code&gt; tag)</p>";
		
			$your_supa_dupa_text = "--\tinsert into\t`superb_table`\n";
			$your_supa_dupa_text .= "\tINSERT INTO\t`superb_table`\tVALUES (1, 9, 0, 3, 0);\n";
			$your_supa_dupa_text .= "\tINSERT INTO\t`superb_table`\tVALUES (8, 0, 0, 3, 0);\n";
			$output_module = 'CODE';	// sorry CODE_HP module is not implemented yet
			$start_language = 'SQL';
			$parser_options = P_TAB_INDENT | P_LINE_COUNTER;
		
			$parser = new fshlParser($output_module, $parser_options);
			echo '<code class="normal">';
			echo $parser->highlightString($start_language, $your_supa_dupa_text);
			echo '</code>';
?>
</body></html>